<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试订单</title>
</head>
<body>
<h1>支付测试</h1>
<hr>
<div class="form-container">
    <form id="form" action="#" method="post">
        *商户订单 :
        <input type="text" name="outTradeNo" value="cs189032174000001"><br>
        *订单名称 :
        <input type="text" name="subject" value="测试商品"><br>
        *付款金额 :
        <input type="number" name="totalAmount" value="0.1"><br>
        *商品描述 :
        <input type="text" name="body" value="测试使用"><br>
        <button onclick="submitForm('order/alipay')">支付宝支付</button>
        <button onclick="submitForm('order/wepay')">微信支付</button>
    </form>
</div>
</body>
<script type="application/javascript">
    function submitForm(action) {
        var form = document.getElementById("form");
        form.action = action;
        form.submit();
    }
</script>

<style>
    .form-container {
        padding-top: 10px;
    }

    input {
        margin: 10px;
    }
</style>
</html>